package yzy.ecps.dao.impl;

import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import yzy.ecps.dao.FeatureDao;
import yzy.ecps.model.BtcFeature;

@Repository
public class FeatureDaoImpl extends SqlSessionDaoSupport implements FeatureDao {
	
	String ns = "btc_feature.";
	
	public List<BtcFeature> findCommonByCatgoryId(Long catgoryId) {
		return getSqlSession().selectList(ns+"findCommonByCatgoryId", catgoryId);
	}

	public List<BtcFeature> findSpecByCatgoryId(Long catgoryId) {
		return getSqlSession().selectList(ns+"findSpecByCatgoryId", catgoryId);
	}

	public List<BtcFeature> findSelectByCatgoryId(Long catgoryId) {
		return getSqlSession().selectList(ns+"findSelectByCatgoryId", catgoryId);
	}

}
